﻿using System;
using System.Collections.Generic;
using System.Text;

namespace C
{
    class SumUtils
    {
        public SumUtils(int a,int b)
        {
            int c = a + b;
            Console.WriteLine("结果为：{0}",c);
        }
        public SumUtils(string a, string b)
        {
            string c = a + b;
            Console.WriteLine("结果为：{0}", c);
        }
        public SumUtils(int a)
        {
            int b = 0;
            for (int i = 1; i <= a; i++)
            {
                 b+=i;
            }



            Console.WriteLine("结果为：{0}", b);
        }


        public SumUtils(double a, double b)
        {
            double c = a + b;
            Console.WriteLine("结果为：{0}", c);
        }

    }
}
